package hxy.scan.server.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import hxy.scan.server.dao.model.BookModel;
import org.apache.ibatis.annotations.Update;

public interface BookMapper extends BaseMapper<BookModel> {


    /**
     * 这里直接写是不够的
     *
     * @param bookEntity
     * @return
     */
    @Update("update book_model set author=#{author},press=#{press} where name = #{name}")
    int updateByName(BookModel bookEntity);
}
